import Vue from 'vue'
import App from './App'
import router from './router'
import store from  './store'
import i18n from './lang'
import CompTags from '@/components/CompTags'
import CompMark from '@/components/CompMark'
import CompProjectNameTags from '@/components/CompProjectNameTags'



import './errorLog'// error log
import './permission' // permission control
import './icons' // icon


import Element from 'element-ui'
Vue.use(Element,{
  size: 'medium',
  i18n: (key, value) => i18n.t(key, value)
})
import VueClipboard from 'vue-clipboard2'
Vue.use(VueClipboard)


Vue.component('CompTags', CompTags)
Vue.component('CompProjectIcons', CompProjectNameTags)
Vue.component('CompMark', CompMark)
import '@/api/interceptors'

import * as filters from './filters'


Object.keys(filters).forEach(key => {
  Vue.filter(key, filters[key])
})

import 'normalize.css'
import '@/scss/theme.scss'
import '@/scss/common.scss'
import '@/scss/resetUI.scss'
import '@/scss/ui.scss'

Vue.config.productionTip = false

Vue.component('Comp-tags')

new Vue({
  el: '#app',
  router,
  store,
  i18n,
  components: { App },
  template: '<App/>'
})
